@extends('front.layout')
@section('title','往期视频')
@section('head')
    <div class="nav">
        <ul class="nav_body">
            <li><a href="/">首页</a></li>
            <li><a href="/conf">名家讲堂</a></li>
            <li><a href="/expert">名家风采</a></li>
            <li><a href="/review" class="current">往期视频</a></li>
        </ul>
    </div>
@endsection
@section('content')
    <div class="main">
        <div class="past_video">
            <div class="past_video_list">
                <div class="one_line clearfix">
                    <?php
                    $num=0;
                    ?>
                    @foreach($oVideos as $v)
                            <?php $num++?>
                        @if($num<3)
                            <div class="review_ship ">
                                <div class="review_ship_img">
                                    <a href="/review/review-info/{{$v->id}}">
                                        <img src="{{$v->thumb}}" />
                                    </a>
                                </div>
                                <div class="review_ship_txt">
                                    <div class="review_ship_title break"><a href="/review/review-info/{{$v->id}}">{{$v->title}}</a></div>
                                    <div class="review_ship_intro clearfix">
                                        <div class="review_ship_left">
                                            <p>主持：<a href="/expert/expert-info/{{$v->Lecture[0]->id}}">{{$v->Lecture[0]->name}}</a></p>
                                            <p>日期：<span class="txt_999">{{$v->begin_time}}</span></p>
                                        </div>
                                        <div class="review_ship_right">
                                            <a class="info_btn" href="/review/review-info/{{$v->id}}">查看详情</a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        @else
                                <?php $num=0?>
                            <div class="review_ship mar_0">
                                <div class="review_ship_img">
                                    <a href="/review/review-info/{{$v->id}}">
                                        <img src="{{$v->thumb}}" />
                                    </a>
                                </div>
                                <div class="review_ship_txt">
                                    <div class="review_ship_title break"><a href="/review/review-info/{{$v->id}}">{{$v->title}}</a></div>
                                    <div class="review_ship_intro clearfix">
                                        <div class="review_ship_left">
                                            <p>主持：<a href="/expert/expert-info/{{$v->Lecture[0]->id}}">{{$v->Lecture[0]->name}}</a></p>
                                            <p>日期：<span class="txt_999">{{$v->begin_time}}</span></p>
                                        </div>
                                        <div class="review_ship_right">
                                            <a class="info_btn" href="/review/review-info/{{$v->id}}">查看详情</a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        @endif
                    @endforeach
                </div>
            </div>
            {{$oVideos->links('page')}}
        </div>
    </div>
@endsection
